package cn.bluemobi.dylan.step.moder.bean;

import com.litesuits.orm.db.annotation.Column;
import com.litesuits.orm.db.annotation.PrimaryKey;
import com.litesuits.orm.db.annotation.Table;
import com.litesuits.orm.db.enums.AssignType;

/**
 * Created by dylan on 2016/1/30.
 */

@Table("step")
public class StepData {

    // 指定自增，每个对象需要有一个主键
//    @PrimaryKey(AssignType.AUTO_INCREMENT)
//    private int id;

    @PrimaryKey(AssignType.BY_MYSELF)
    @Column("stepTime")
    private long stepTime; //2018-12-05
    @Column("stepNumber")
    private int stepNumber;   //b步数
    @Column("memberId")
    private int memberId;
//    @Column("stepTimeStr")
//    @PrimaryKey(AssignType.BY_MYSELF)
//    private String stepTimeStr; //2018-12-05

    @Column("status")
    private int status;   //0未上传   1已经上传

//    public int getId() {
//        return id;
//    }
//
//    public void setId(int id) {
//        this.id = id;
//    }

    public long getStepTime() {
        return stepTime;
    }

    public void setStepTime(long stepTime) {
        this.stepTime = stepTime;
    }

    public int getStepNumber() {
        return stepNumber;
    }

    public void setStepNumber(int stepNumber) {
        this.stepNumber = stepNumber;
    }

    public int getMemberId() {
        return memberId;
    }

    public void setMemberId(int memberId) {
        this.memberId = memberId;
    }

//    public String getStepTimeStr() {
//        return stepTimeStr;
//    }
//
//    public void setStepTimeStr(String stepTimeStr) {
//        this.stepTimeStr = stepTimeStr;
//    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "StepData{" +
//                "id=" + id +
                ", today='" + stepTime + '\'' +
                ", step='" + stepNumber + '\'' +
                '}';
    }
}
